package com.green_reading.webrtcclient;

public class WebrtcEvent {
    public interface WebrtcCallback {
        public void onLogin();

        public void onLogout();

        public void onConnect();

        public void onDisconnected();

        public void onOffLine();

        public void onNotify(String msg);

        public void onFilePutRequest(String fileName);

        public void onFileAccept();

        /**
         * 下载文件大小为０
         */
        public void onFileSizeError();

        /* toast a message*/
        public void onMessage(String message);

        public void onFileAbort();

        public void onFileFinish();

        public void onFileReject();

        /**
         * 文件传输进度
         *
         * @param localPath    本地保存路径
         * @param totalBytes   文件总大小
         * @param receiveBytes 已经接收的字节
         */
        public void onFileProgress(String localPath, int totalBytes, int receiveBytes);
    }
}